package com.probiz.estore.common.model.customer;

import com.probiz.estore.common.model.customer.base.FavoriteTbl;


/**
 * Model class for Favorite. Add not database mapped fileds in this class.
 */
public class Favorite extends FavoriteTbl {
	
	public static final Short	CONST_FAVORITE_PRODUCT		= new Short("1");
	public static final Short	CONST_FAVORITE_CUSTOMER		= new Short("2");
	public static final Short	CONST_FAVORITE_BUYINGLEAD	= new Short("3");
	
	public static enum FilterHqlName{DEFAULT, FOR_CUSTOMER};

  	/**
	 * Default Empty Constructor for class Favorite
	 */
	public Favorite () {
		super();
	}
	
	/**
	 * subclass should overwrite this method to return a concrete URL which represents the object
	 * @return
	 */
	public String getFavoriteName () {
		if (favoriteId == null)
	        return "";
	    else
			//返回一个指定有业务意义的属性值;
			//如：product的VO就用product.productName
	        return "";
	}
	
	/**
	 * Default Key Fields Constructor for class Favorite
	 */
	public Favorite (Integer in_favoriteId) {
		super (in_favoriteId);
	}
	
	/**
	 * subclass should overwrite this method to return a concrete URL which represents the object
	 * @return
	 */
	public String getUrl() {
		return "";
	}

}
